package com.zhx.ad.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhx.ad.entity.AdUnit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *describe: 
 *
 *@author zhanghaixuan
 *@date 2019/02/02
 **/
public interface AdUnitMapper extends BaseMapper<AdUnit> {

	AdUnit findByPlanIdAndUnitName(@Param("planId") String planId, @Param("unitName") String unitName);

	List<AdUnit> findAllByUnitStatus(@Param("unitStatus") Integer unitStatus);
}
